/**
 * jims
 */
package com.jims.master.modules.csm.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotNull;

import com.jims.master.common.persistence.DataEntity;

/**
 * 消耗品调价记录表Entity
 * @author CTQ
 * @version 2017-07-08
 */
public class ExpPriceAdjustRecord extends DataEntity<ExpPriceAdjustRecord> {
	
	private static final long serialVersionUID = 1L;
	private String expPriceId;		// 消耗品价格ID
	private Double quantity;		// 大包装库存量
	private String supplierId;		// 供应商
	private Date changeDate;		// 调价时间
	private Double tradeCurrentPrice;		// 当前批发价格
	private Double tradeUpperPrice;		// 上次批发价格
	private Double tradeDifferentPrice;		// 批发差价
	private Double retailCurrentPrice;		// 当前零售价格
	private Double retailUpperPrice;		// 上次零售价格
	private Double retailDifferentPrice;		// 零售差价

	private String expName;
	private String expSpec;
	private String firmName;
	
	public ExpPriceAdjustRecord() {
		super();
	}

	public ExpPriceAdjustRecord(String id){
		super(id);
	}

	@Length(min=1, max=64, message="消耗品价格ID长度必须介于 1 和 64 之间")
	public String getExpPriceId() {
		return expPriceId;
	}

	public void setExpPriceId(String expPriceId) {
		this.expPriceId = expPriceId;
	}
	
	public Double getQuantity() {
		return quantity;
	}

	public void setQuantity(Double quantity) {
		this.quantity = quantity;
	}
	
	@Length(min=0, max=64, message="供应商长度必须介于 0 和 64 之间")
	public String getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(String supplierId) {
		this.supplierId = supplierId;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getChangeDate() {
		return changeDate;
	}

	public void setChangeDate(Date changeDate) {
		this.changeDate = changeDate;
	}
	
	public Double getTradeCurrentPrice() {
		return tradeCurrentPrice;
	}

	public void setTradeCurrentPrice(Double tradeCurrentPrice) {
		this.tradeCurrentPrice = tradeCurrentPrice;
	}
	
	public Double getTradeUpperPrice() {
		return tradeUpperPrice;
	}

	public void setTradeUpperPrice(Double tradeUpperPrice) {
		this.tradeUpperPrice = tradeUpperPrice;
	}
	
	public Double getTradeDifferentPrice() {
		return tradeDifferentPrice;
	}

	public void setTradeDifferentPrice(Double tradeDifferentPrice) {
		this.tradeDifferentPrice = tradeDifferentPrice;
	}
	
	public Double getRetailCurrentPrice() {
		return retailCurrentPrice;
	}

	public void setRetailCurrentPrice(Double retailCurrentPrice) {
		this.retailCurrentPrice = retailCurrentPrice;
	}
	
	public Double getRetailUpperPrice() {
		return retailUpperPrice;
	}

	public void setRetailUpperPrice(Double retailUpperPrice) {
		this.retailUpperPrice = retailUpperPrice;
	}
	
	public Double getRetailDifferentPrice() {
		return retailDifferentPrice;
	}

	public void setRetailDifferentPrice(Double retailDifferentPrice) {
		this.retailDifferentPrice = retailDifferentPrice;
	}

	public String getExpName() {
		return expName;
	}

	public void setExpName(String expName) {
		this.expName = expName;
	}

	public String getExpSpec() {
		return expSpec;
	}

	public void setExpSpec(String expSpec) {
		this.expSpec = expSpec;
	}

	public String getFirmName() {
		return firmName;
	}

	public void setFirmName(String firmName) {
		this.firmName = firmName;
	}
}